package com.cy.pojo.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

@Data
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
public class ContentVO implements Serializable {
    @ApiModelProperty("ID")
    private Long id;

    @ApiModelProperty("标题")
    private String title;

    @ApiModelProperty("摘要")
    private String brief;

    @ApiModelProperty("媒体类型")
    private Integer mediaType;

    @ApiModelProperty("媒体url")
    private String imgUrl;

    private String videoUrl;

    private Integer viewCount;

    private Integer commentCount;

    @JsonFormat(pattern = "yyyy/MM/dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    private String content;

    private String nickName;

    private String userImgUrl;
}
